﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using System;
using ScrumTable.Common.Collections;

#endregion

namespace ScrumTable.DL.Data.Schema.ScrumTableV1
{
    /// <summary>
    /// Specifies an enumeration with the field names of 
    /// the attachment data access object.
    /// </summary>
    public class AttachmentSchema : SchemaBase
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------

        /// <summary>
        /// Name for the title (or overview) field.
        /// </summary>
        /// <remarks>The value must be type of string.</remarks>
        public readonly SchemaBase Name = new NamedSchema(typeof(string));

        /// <summary>
        /// Name for the description (comment) attachment field.
        /// </summary>
        /// <remarks>The value must be type of string.</remarks>
        public readonly SchemaBase Description = new NamedSchema(typeof(string));

        /// <summary>
        /// Name for the extension attachment field.
        /// </summary>
        /// <remarks>The value must be type of string.</remarks>
        public readonly SchemaBase Extension = new NamedSchema(typeof(string), isReadOnly: true);

        /// <summary>
        /// Name for the uri attachment field.
        /// </summary>
        /// <remarks>The value must be type of Uri.</remarks>
        public readonly SchemaBase Uri = new NamedSchema(typeof(Uri));

        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        /// <summary>
        /// Do not create global instances of this class.
        /// </summary>
        internal protected AttachmentSchema()
        {
        }

        #endregion
    }
}
